/**
 * Author: Shen Yanqiu
 * Date: 2017-12-08
 * Time: 18:42
 *
 */
import { request } from 'utils';
import { api } from 'config';

// 获取学校列表
export async function getSchool (params) {
  return request({
    url: api.register.school,
    method: 'get',
    data: params,
  });
}
// 获取验证码
export async function getCode (params) {
  return request({
    url: api.code,
    method: 'post',
    data: params,
  });
}
// 执行注册
export async function doRegister (params) {
  return request({
    url: api.register.doRegister,
    method: 'post',
    data: params,
  });
}
